<?php

/**
 * BadRequestException
 *
 * @author vbolshov
 */

namespace km\exception;

class BadRequestException extends HttpErrorException {
	function __construct($message = null, $code = 400)
	{
		$message = $message ?: '400 Bad Request';
		parent::__construct($message, $code);
		$this->header('Status: 400 Bad Request', 400);
	}
}